package com.sweet.fourtimeoa.controller;

import com.sweet.fourtimeoa.pojo.entity.BusinessCardPrinting;
import com.sweet.fourtimeoa.service.impl.BusinessServiceImpl;
import com.sweet.fourtimeoa.service.impl.SeanlmanaServiceImpl;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.Map;

@Tag(name = "行政管理名片印制流程")
@RestController
@RequestMapping("/oa/business")
@CrossOrigin(origins = "*")
public class BusinessController {
    @Autowired
    private BusinessServiceImpl businessService;


    @Operation(summary ="行政管理名片印制流程-新增")
    @PostMapping("/addition")
    public Map<String,String> addSeal(@RequestBody BusinessCardPrinting businesscardprinting) {
        Map<String,String> map = new HashMap<>();
        boolean isok = businessService.addSeal(businesscardprinting);
        if (isok==true){
            map.put("result","true");
        }else {
            map.put("result","false");
        }
        return map;
    }

}
